package com.example.villagedevelop.generator.service;

import com.example.villagedevelop.generator.entity.DevelopVO;
import com.example.villagedevelop.generator.entity.House;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.villagedevelop.generator.entity.HouseVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author villagedevelop
 * @since 2021-11-13
 */
public interface HouseService extends IService<House> {
    public List<HouseVO> houseListToVOList(List<House> houseList);
    public List<HouseVO> findHouseVOByPageAndOrder();
    public void insertHouseVO(HouseVO houseVO);
    public List<HouseVO> findHouseVOBytown(String town);
    public List<String> findVillage(String town);
    public List<HouseVO> findHouseVOBytown_village(String town,String village);

    /**
     *分类
     */
    public List<HouseVO> findHouseVO_Classify(String field,int min,int max);

    /**
     *分类加排序
     * 1表升序
     * 2表降序
     */
    public List<HouseVO> findHouseVO_Classify_order(String field,int method,int min,int max);
    public List<HouseVO> findHouseVO_Classify_Property(String property);
    public void changeDefaultSort(int id1, int id2);
    public void deleteObject(int id);





}
